package cn.bugstack.domain.order.adapter.port;

import cn.bugstack.domain.order.model.entity.MarketPayDiscountEntity;
import cn.bugstack.domain.order.model.entity.ProductEntity;

import java.util.Date;

public interface IProductPort {

    // 从外部系统查询商品
    ProductEntity queryProductByProductId(String productId);

    // 拼团服务的营销锁单功能
    MarketPayDiscountEntity lockMarketPayOrder(String userId, String teamId, Long activityId, String productId, String orderId);

    // 拼团服务的订单结算功能
    void settlementMarketPayOrder(String userId, String orderId, Date orderTime);

    // 调用拼团退单接口 进行拼团订单退单
    void refundMarketPayOrder(String userId, String orderId);
}
